//
//  MyButton.h
//  JiFengDaRen
//
//  Created by guest on 16/1/20.
//  Copyright © 2016年 陈永发. All rights reserved.
//

#import <UIKit/UIKit.h>
#define APPW [UIScreen mainScreen].bounds.size.width
#define APPH [UIScreen mainScreen].bounds.size.height

@interface MyButton : UIButton
//按钮被点击会调用该block
@property (nonatomic,copy) void(^myButtonDidTapAtIndexBlock)(NSInteger index); //index从0开始
+(instancetype)buttonWithFrame:(CGRect)frame title:(NSString *)title image:(NSString *)image titleColor:(UIColor *)titleColor font:(CGFloat)font tag:(NSInteger)tag ;
@end
